<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Site Map</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script language="javascript" src="js/common.js" type="text/javascript"></script>
<!--below is the code to display the menu properly in ie6-->
<!--[if IE 6]>
<style type="text/css"> 
#logo {
	margin:35px 0 0 12px; /*change the left margin to half for ie6*/
	}
#tab_content li .left {
	margin:20px 0 0 12px;
	
}
</style>
<script type="text/javascript" src="js/hide-select.js"></script> 
<script type="text/javascript" src="js/main.js"></script>
<script defer type="text/javascript" src="js/pngfix.js"></script>
<![endif]--><!-- start lightbox code -->
<link rel="stylesheet" href="css/jquery.lightbox-0.5.css" type="text/css" />
<script type="text/javascript" src="js/jquery.lightbox-0.5.pack.js"></script>
<script type="text/javascript">
$(function() {
	$('.lightbox').lightBox();
});
</script>
<!-- end lightbox code -->
</head>
<body>
<div id="wrapper">
  <div id="header">
    <div id="logo"><a href="index.html"><img src="images/logo.png" alt="Logo" width="240" height="68" border="0" /></a></div>
    <div id="header_menu">
      <ul id="navigation">
        <li><a href="index.html">Home</a></li>
        <li><a href="services.html">Services</a>
          <!--notice you do not close the </li> here -->
          <ul class="second-level">
            <!--start a new list with the style: class="second-level"-->
            <li> <a href="#">Other Service 1</a></li>
            <li> <a href="#">Other Service 2</a></li>
            <li> <a href="#">Other Service 3</a></li>
            <li> <a href="#">Other Service 4</a></li>
            <li> <a href="#">Other Service 5</a></li>
            <li> <a href="#">Other Service 6</a></li>
          </ul>
          <!-- close the new list-->
        </li>
        <!-- close the services <li>-->
        <li><a href="portfolio.html">Portfolio</a> </li>
        <li><a href="blog.html">Blog</a></li>
        <li><a href="contact.html" >
          <!--this gets rid of last divider-->
          Contact </a></li>
      </ul>
    </div>
    <!--end header menu-->
  </div>
  <!--end header-->
  <!--start plain content box-->
  <div id="plain_content_bg">
    <div class="top">
      <div class="content">
            <!--start site map code-->
<h1>Site Map</h1>
<ul>
  <?php
	$files = glob("*.html");
	$ignore_files = array( //add any file names of files you don't want to appear in the site map
		"formsubmit.php",
		"thankyou.html",
	);
	foreach($files as $f){ 
		if(in_array($f,$ignore_files))continue;
		$file_data = file_get_contents($f);
		if(preg_match('/<title>([^<]+)<\/title>/i',$file_data,$matches)){
		$page_title = $matches[1];
		}else{
		$page_title = $f;
		}
		
		?>
  <li><a href="<?=$f;?>">
    <?=$page_title;?>
    </a></li>
  <?
	}
	?>
</ul>
<!--end site map code-->
      
      
      <div class="clear"></div></div>
      <!--this make sure the bottom of the columns stays at the bottom-->
      <div class="bottom"><img src="images/background_main_plain_bottom.gif" width="940" height="6" alt="bottom" /></div>
    </div>
  </div>
  <!--end main content-->
  <div id="footer">
    <div class="left">&copy; World Wide Webdesign</div>
    <div class="right">  <ul>
        <li><a href="http://themeforest.net/user/dtbaker?ref=dtbaker">Designed by dtbaker</a> </li>
        <li>| <a href="sitemap.php">Site map</a> </li>
        <li>| <a href="contact.html">Contact Us</a></li>
      </ul></div>
  </div>
</div>
</body>
</html>
